<template>
    <div class="s">
        {{ text }}
        <slot></slot>
    </div>
</template>

<script setup lang="ts">
defineProps({
    text: {
        type: String,
        default: '断线重连中...'
    }
})
</script>

<style lang="scss" scoped>
.s {
    position: absolute;
    top: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 100%;
    background-color: #fc496f;
    z-index: 999;
}
</style>